<%@ Reference Control="~/Controls/PagingControl.ascx" %>
<%@ Register tagprefix="Pager" Tagname="DataGridPager" Src="Controls/PagingControl.ascx" %>
<%@ Page language="vb" EnableViewStateMac="true" Inherits="_2bMatesSite.view_blocked_users" CodeFile="view_blocked_users.aspx.vb" CodeFileBaseClass="_2bMatesSite.BaseWebPage" %>
<form id="_Form1" method="post" runat="server">
	<table height="100%" cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
		<tr>
			<td class="page_title"><asp:label id="lblTitle" runat="server">Blocked Users</asp:label></td>
		</tr>
		<tr>
			<td class="main_table_border" vAlign="top" height="100%">
				<div class="content">			
					<asp:label id="lblNoBlockedUsers" runat="server" Visible="False" cssclass="main_text">Your blocked users list is empty now.</asp:label>
					<asp:table id="tblBlockedUsers" runat="server" cellspacing=0 cellpadding=0 cssclass="main_text" width="100%">
						<asp:TableRow VerticalAlign="Top">
							<asp:TableCell VerticalAlign="Top">
								<table cellSpacing="0" cellPadding="0" width="100%" border="0" class="main_text">
									<tr>
										<td vAlign="top" align="left" class="small">
											<Pager:DataGridPager runat="server" ID="dgPagerUp"></Pager:DataGridPager>
										</td>
									</tr>
									<tr>
										<td height="5" class="small">&nbsp;</td>
									</tr>
									<tr>
										<td align="left">
											<asp:DataList runat="server" Width="100%" ShowFooter="False" BorderWidth="0px" ShowHeader="False"
												HorizontalAlign="Left" RepeatColumns="8" CssClass="data_list" RepeatDirection="Horizontal"
												ID="dlBlockedUsers" CellPadding="0">
												<itemstyle horizontalalign="Left" verticalalign="Bottom" width="12%"></itemstyle>
												<ItemTemplate>
													<table cellSpacing="0" cellPadding="0" border="0">
														<tr>
															<td><div align=center><asp:LinkButton id=lbName runat="server" cssclass="main_text_bold" Text='<%# DataBinder.Eval(Container.DataItem, "Name") %>' CommandName="MemberRedirect" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "UserID") %>'></asp:LinkButton></div>
																<asp:imagebutton id=imgPhoto runat="server" CssClass="small_image" ImageUrl='<%# DataBinder.Eval(Container.DataItem, "ImageURL") %>' CommandName="MemberRedirect" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "UserID") %>' ToolTip='<%# DataBinder.Eval(Container.DataItem, "FullName") %>'>
																</asp:imagebutton><br />
																<div align=center><img src="images/spacer.gif" height="3" width="1"><br>
																<asp:image id=imgOnline runat="server" ImageUrl='<%# DataBinder.Eval(Container.DataItem, "OnlineImg") %>'></asp:image></div>
															</td>
														</tr>
														<TR>
															<TD vAlign="middle" align="center" height="20"><asp:LinkButton id=lbUnblockUser runat="server" cssclass="main_text_bold" Visible='<%# DataBinder.Eval(Container.DataItem, "UnblockUserVisibility") %>' CausesValidation="False" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "UserID") %>' CommandName="UnblockUser">Unblock</asp:LinkButton></TD>
														</TR>
													</TABLE>
												</ItemTemplate>
											</asp:DataList>
										</td>
									</tr>
									<tr>
										<td height="5" class="small">&nbsp;</td>
									</tr>											
									<tr>
										<td vAlign="top" align="left" class="small">
											<Pager:DataGridPager runat="server" ID="dgPager"></Pager:DataGridPager>
										</td>
									</tr>											
								</table>
							</asp:TableCell>
						</asp:TableRow>
					</asp:table>
					<asp:textbox id="txtStartIndexHidden" style="display: none;" runat="server" width="1px" height="1px">0</asp:textbox>
				</div>	
			</td>
		</tr>
	</table>
</form>
